import * as React from 'react';
import {NavigationContainer} from '@react-navigation/native';
import {createNativeStackNavigator} from '@react-navigation/native-stack';
import {TransitionPresets} from '@react-navigation/stack';

import Main from '../pages/main';
import Login from '../pages/login';
import ArticleList from '../pages/homePkg/articleList';
import ArticleInfo from '../pages/homePkg/articleInfo';
import AddressList from '../pages/homePkg/addressList';
import AddressInfo from '../pages/homePkg/addressInfo';
import CommodityList from '../pages/homePkg/commodityList';
import CommodityInfo from '../pages/homePkg/commodityInfo';

const Stack = createNativeStackNavigator();

export default () => {
  return (
    <NavigationContainer>
      <Stack.Navigator initialRouteName="Main">
        {/* <Stack.Screen
          name="Login"
          component={Login}
          options={{headerShown: false}}
        /> */}

        <Stack.Screen
          name="Main"
          component={Main}
          options={{headerShown: false}}
        />

        {/* <Stack.Screen
          name="ArticleList"
          component={ArticleList}
          options={{
            headerShown: false,
          }}></Stack.Screen>
        <Stack.Screen
          name="ArticleInfo"
          component={ArticleInfo}
          options={{
            headerShown: false,
          }}></Stack.Screen>
        <Stack.Screen
          name="AddressList"
          component={AddressList}
          options={{
            headerShown: false,
          }}></Stack.Screen>
        <Stack.Screen
          name="AddressInfo"
          component={AddressInfo}
          options={{
            headerShown: false,
          }}></Stack.Screen>
        <Stack.Screen
          name="CommodityList"
          component={CommodityList}
          options={{
            headerShown: false,
          }}></Stack.Screen>
        <Stack.Screen
          name="CommodityInfo"
          component={CommodityInfo}
          options={{
            headerShown: false,
          }}></Stack.Screen> */}
      </Stack.Navigator>
    </NavigationContainer>
  );
};
